<template>
  <view>
    <web-view :src="allUrl"></web-view>
  </view>
</template>

<script>
  import { deleteContractFileAPI } from '@/api/order/contract'
  export default {
    data() {
      return {
        allUrl: ''
      }
    },
    methods : {
      deleteContractFile(url){
        deleteContractFileAPI({contractFilePath: url}).then((res)=>{
          console.log(res)
        })
      }
    },
    onLoad(options) {
      this.allUrl = options.url
      // 销毁文件
      this.deleteContractFile(options.url);
    }
  }
</script>


<style>

</style>
